﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.FileServerData;

public partial class bs_file
{
    [Key]
    public long id { get; set; }

    [StringLength(100)]
    public string guid { get; set; }

    /// <summary>
    /// 编号
    /// </summary>
    [StringLength(100)]
    public string code { get; set; }

    /// <summary>
    /// 父级
    /// </summary>
    public long? parent_id { get; set; }

    /// <summary>
    /// 层级
    /// </summary>
    [Column(TypeName = "int(10) unsigned zerofill")]
    public uint? level { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [StringLength(255)]
    public string name { get; set; }

    /// <summary>
    /// 系统名称
    /// </summary>
    [StringLength(255)]
    public string system_name { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [StringLength(255)]
    public string url { get; set; }

    /// <summary>
    /// 路径
    /// </summary>
    [Column(TypeName = "datetime")]
    public DateTime? create_time { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? update_time { get; set; }

    [StringLength(255)]
    public string parent_guid { get; set; }
}
